<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="简单计算器.css">
</head>
<body>
<h2>js的第一例子：模拟加减乘除</h2>
	<form action="">
		<div>
			<label>数字1：</label>
			<input type="text" id="num1">
		</div>
		<div>
			<label>数字2：</label>
			<input type="text" id="num2">
		</div>
		<div>
			<input type="button" value="最大值" onclick="getMax()">
			<input type="button" value="加" onclick="add()">
			<input type="button" value="减" onclick="jian()">
			<input type="button" value="乘" onclick="cheng()">
			<input type="button" value="除" onclick="chu()">
		</div>
		
		<h3>结果</h3>
		<div id="result1"></div>
	</form>
	<script type="text/javascript" src="简单计算器.js"></script>
</body>
</html>